-- GENERATED SPELL FOR [Dragonflayer Deathseeker] --


function spell0_26550(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(42724,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26550', 593, 1)
end

function spell1_26550(pUnit, Event) --@Grave Strike,n/a--
pUnit:FullCastSpellOnTarget(48851,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26550', 5000, 1)
end

function spell2_26550(pUnit, Event) --@Grave Strike,n/a--
pUnit:FullCastSpellOnTarget(59079,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26550', 5000, 1)
end

function Sorts_26550(pUnit, Event)
local choix_sorts_26550 = math.random(0, 2)
if choix_sorts_26550 == 0 then
pUnit:RegisterEvent('spell0_26550', 1, 1)
end
if choix_sorts_26550 == 1 then
pUnit:RegisterEvent('spell1_26550', 1, 1)
end
if choix_sorts_26550 == 2 then
pUnit:RegisterEvent('spell2_26550', 1, 1)
end
end

function mob26550_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26550', math.random(1500, 3000), 1)
end

function mob26550_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26550_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26550_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26550, 1, 'mob26550_Action')
RegisterUnitEvent(26550, 2, 'mob26550_Leave')
RegisterUnitEvent(26550, 3, 'mob26550_Kill')
RegisterUnitEvent(26550, 4, 'mob26550_Die')
